import * as actionTypes from './actionTypes'
import { fromJS } from 'immutable'
const defaultState = fromJS({
    articleList: [],
    recommendList: [],
    topicList: []
})

export default (state = defaultState, action) => {
    switch (action.type) {
        case actionTypes.GET_HOME_DATA:
        
        return state.merge({
            articleList: action.articleList,
            recommendList: action.recommendList,
            topicList: action.topicList,
        });
        default:
            return state
    }
   
}


